﻿using System.ComponentModel.DataAnnotations;

namespace ManagementApi.Models.Manage.ProjectGroupMember
{
    public class EditPersonGroupMemberForm
    {
        /// <summary>
        /// 人员信息
        /// </summary>
        [Display(Name = "人员信息")]
        [Required(ErrorMessage = "{0}不能为空")]
        public int PersonId { get; set; }
        /// <summary>
        /// 原班组
        /// </summary>
        [Display(Name = "原班组")]
        [Required(ErrorMessage = "{0}不能为空")]
        public int OldGroupId { get; set; }
        /// <summary>
        /// 更换后班组
        /// </summary>
        [Display(Name = "更换后班组")]
        [Required(ErrorMessage = "{0}不能为空")]
        public int NewGroupId { get; set; }
        /// <summary>
        /// 进场日期
        /// </summary>
        [Display(Name = "进场日期")]
        [Required(ErrorMessage = "{0}不能为空")]
        public DateTime StartDate { get; set; }
        /// <summary>
        /// 离场日期
        /// </summary>
        [Display(Name = "离场日期")]
        [Required(ErrorMessage = "{0}不能为空")]
        public DateTime EndDate { get; set; }
    }
}
